package com.cvit.cn.dao;

import com.cvit.cn.bean.SupplierInfo;
import com.cvit.cn.bean.SupplierInfoExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SupplierInfoMapper {
    long countByExample(SupplierInfoExample example);

    int deleteByExample(SupplierInfoExample example);

    int deleteByPrimaryKey(String id);

    int insert(SupplierInfo record);

    int insertSelective(SupplierInfo record);

    List<SupplierInfo> selectByExample(SupplierInfoExample example);
    //---根据Id查询
    List<SupplierInfo> selectByPrimaryKey(String id);
    
    //---模糊查询
    List<SupplierInfo> selectBySupplierName(String supplierName);
    
    //SupplierInfo selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") SupplierInfo record, @Param("example") SupplierInfoExample example);

    int updateByExample(@Param("record") SupplierInfo record, @Param("example") SupplierInfoExample example);

    int updateByPrimaryKeySelective(SupplierInfo record);

    //修改供应商信息
    int updateByPrimaryKey(SupplierInfo record);
    
    //批量删除
	int delSupplierInfo(String[] ids);

	//查询
	List<SupplierInfo> selectSupplierInfo();

	//假删除
	int  delSupplierInfoFalse(String[] ids);
	
	/**
	 * 根据供应商ID查所有数据
	 */
	List selectByInfoIdAll(String id);

	List<SupplierInfo> seleByqq(String id);

	//根据supplierEmail给flag赋值为1
	void updateFlag(SupplierInfo si);

	void deleSupplier(String id);
}